From 27d7a341944c7662d5c0d49192039df96f2d495c Mon Sep 17 00:00:00 2001 From: "emellor@ewan" Date: Mon, 10 Oct 2005 18:58:46 +0100 Subject: [PATCH] Fix completely broken xenstore_read function. Signed-off-by: Ewan Mellor --- tools/examples/xen-hotplug-common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/examples/xen-hotplug-common.sh b/tools/examples/xen-hotplug-common.sh index b1e1be6275..aa0f7fabc8 100644 --- a/tools/examples/xen-hotplug-common.sh +++ b/tools/examples/xen-hotplug-common.sh @@ -9,10 +9,10 @@ log() { } xenstore_read() { - local v=$(xenstore-read "$XENBUS_PATH"/type || true) + local v=$(xenstore-read "$@" || true) if [ "$v" == "" ] then - log error "xenstore-read $XENBUS_PATH/type failed." + log error "xenstore-read $@ failed." exit 1 fi echo "$v" -- 2.30.2